package cn.wenhe9.yygh.hosp.client;

import cn.wenhe9.yygh.model.vo.hosp.ScheduleOrderVo;
import cn.wenhe9.yygh.model.vo.order.SignInfoVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author DuJinliang
 * 2022/4/6
 */
@FeignClient(value = "service-hosp", path = "/api/hosp/hospital")
@Component
public interface HospFeignClient {
    /**
     * 根据排班id获取预约下单数据
     * @param scheduleId String
     * @return ScheduleOrderVo
     */
    @GetMapping("/inner/scheduleOrder/{scheduleId}")
    ScheduleOrderVo getScheduleOrderVo(
            @PathVariable(name = "scheduleId") String scheduleId
    );

    /**
     * 获取医院签名信息
     * @param hoscode String
     * @return SignInfoVo
     */
    @GetMapping("/inner/signInfo/{hoscode}")
    SignInfoVo getSignInfo(
            @PathVariable(name = "hoscode") String hoscode
    );
}
